package com.xy.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Cacheable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;

/*
 * @入库订单报销
 */
@SuppressWarnings("serial")
@Entity
@Table
@Cacheable
public class PayMent extends Identified implements Serializable {

  private Date payDate;// 报销时间
  private String station;// 报销状态
  // 对应管理员表
  @ManyToOne(targetEntity = Admin.class)
  @JoinColumn(name = "Admin_Id", referencedColumnName = "id")
  private Admin admin;
  // 对应入库表
  @ManyToOne(targetEntity = StockReceive.class)
  @JoinColumn(name = "StockReceive_Id", referencedColumnName = "id")
  private StockReceive stockReceive;


  public Date getPayDate() {
    return payDate;
  }

  public void setPayDate(Date payDate) {
    this.payDate = payDate;
  }

  public String getStation() {
    return station;
  }

  public void setStation(String station) {
    this.station = station;
  }

  public Admin getAdmin() {
    return admin;
  }

  public void setAdmin(Admin admin) {
    this.admin = admin;
  }

  public StockReceive getStockReceive() {
    return stockReceive;
  }

  public void setStockReceive(StockReceive stockReceive) {
    this.stockReceive = stockReceive;
  }

  public PayMent() {
    super();
    // TODO Auto-generated constructor stub
  }

}
